package com.car.service.custormer;

import com.car.dao.custormer.CustormerCreditReportDao;
import com.car.entity.Custormer;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author: 贾勇
 * @ClassName CustormerCreditReportServiceImpl
 * @Description:
 * @DateTime: 2021-12-09 10:15
 */
@Service
public class CustormerCreditReportServiceImpl implements CustormerCreditReportService {

    @Getter
    @Setter
    @Autowired
    private CustormerCreditReportDao creditReport;

    @Override
    public List<Custormer> getAllCustomer(Map<String, Object> map) {
        return creditReport.getAllCustomer(map);
    }

    @Override
    public Integer getAllCustomerCount(Map<String, Object> map) {
        return creditReport.getAllCustomerCount(map);
    }

    @Override
    public Custormer getCustomerById(int custormerId) {
        return creditReport.getCustomerById(custormerId);
    }

    @Override
    public Integer updateCustomerCredit(Custormer custormer) {
        return creditReport.updateCustomerCredit(custormer);
    }
}
